﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZR.Model.Models.ProductionControl
{
    /// <summary>
    /// 纸板使用记录
    /// </summary>
    [SugarTable("cks_cardboard_packaging_usage_log")]
    [Table(Name = "cks_cardboard_packaging_usage_log")]
    public class CksCardboardPackagingUsageLog : BaseEntity
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Column(IsPrimary = true, IsIdentity = true)]
        public long Id { get; set; }
        /// <summary>
        /// 关联的任务编号
        /// </summary>
        public string TaskNo {  get; set; }
        /// <summary>
        /// 类型宽度
        /// </summary>
        public int TypeWidth {  get; set; }
        /// <summary>
        /// 出纸长度
        /// </summary>
        public decimal OutputLength {  get; set; }
        /// <summary>
        /// 用纸宽度，对应纸型号
        /// </summary>
        public decimal UsageWidth {  get; set; }
        /// <summary>
        /// 出纸面积
        /// </summary>
        public decimal OutputArea {  get; set; }
        /// <summary>
        /// 使用面积
        /// </summary>
        public decimal UsageArea { get; set; }
        /// <summary>
        /// 浪费面积
        /// </summary>
        public decimal WasteArea { get; set; }
        /// <summary>
        /// 利用率
        /// </summary>
        [Column(Precision =10,Scale =2)]
        public decimal UtilizationRate {  get; set; }


        /// <summary>
        /// 生产模式 1正式 2调试
        /// </summary>
        public int ProductMode { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime {  get; set; } = DateTime.Now;
        /// <summary>
        /// 禁用状态
        /// </summary>
        public bool Nullity {  get; set; }

    }
}
